<div class="form">
<?php if ( $job->status == 2 ): ?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'feedback-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

    <div class="row">
        <h1><?php echo 'Dự án: '.$job->name; ?></h1>
	</div>
	<div class="row">
        <h1><?php echo 'Người đăng dự án : '.$user->name; ?></h1>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_id_bid'); ?>
		<?php echo $form->dropDownlist($model,'user_id_bid',$model->getBidJob($job->id), array('prompt' => 'Chọn người làm dự án')); ?>
		<?php echo $form->error($model,'user_id_bid'); ?>
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'comment'); ?>
		<?php echo $form->textField($model,'comment',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'time_stone'); ?>
		<?php  $this->widget('CStarRating',array(
                'name'=>'time_stone',
                'value'=>5,
                'readOnly'=>false,
        ));
        ?><br />
		<?php echo $form->error($model,'time_stone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'quality_rate'); ?>
		<?php  $this->widget('CStarRating',array(
                'name'=>'quality_rate',
                'value'=>5,
                'readOnly'=>false,
        ));
        ?><br/>
		<?php echo $form->error($model,'quality_rate'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
    <?php $this->endWidget(); ?>
<?php else: ?>
<h1>Dự án này chưa hoàn thành</h1>
<a href="/ddfreelancer/index.php"><h1>Bạn nhấn vào đây để quay về trang chủ</h1></a>
<?php  endif; ?>
</div><!-- form -->